.rec-shell {
  width: 1100px;
  height: 800px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0px auto;
  margin-top: 20px;
  .content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;

    &::-webkit-scrollbar {
      width: 8px;
    }

    &::-webkit-scrollbar-track {
      background: #f1f1f1;
      border-radius: 10px;
    }

    &::-webkit-scrollbar-thumb {
      background: #c1c1c1;
      border-radius: 10px;

      &:hover {
        background: #a8a8a8;
      }
    }
  }

  .input-content {
    height: 240px;
    border-top: 1px solid #eee;
    padding: 10px;
    overflow-y: auto;

    .form-container {
      width: 90%;
      margin: 0px auto;
      height: 100%;
      .form-row {
        display: flex;
        margin-bottom: 15px;
        justify-content: space-between;
        
        .form-group {
          display: flex;
          align-items: center;
          // width: 40%;
          
          &.full-width {
            width: 100%;
          }
          
          label {
            min-width: 100px;
            margin-right: 10px;
            text-align: right;
            font-size: 14px;
            color: #333;
          }
          
          input {
            flex: 1;
            height: 36px;
            border: 1px solid #ddd;
            border-radius: 4px;
            padding: 0 10px;
            font-size: 14px;
            
            &:focus {
              border-color: #319A19;
              outline: none;
            }
          }
          
          textarea {
            flex: 1;
            border: 1px solid #ddd;
            border-radius: 4px;
            padding: 8px 10px;
            font-size: 14px;
            resize: none;
            
            &:focus {
              border-color: #319A19;
              outline: none;
            }
          }
        }
        
        .form-buttons {
          display: flex;
          align-items: center;
          justify-content: flex-end;
          width: 48%;
          
          button {
            padding: 0 20px;
            height: 36px;
            border-radius: 4px;
            font-size: 14px;
            cursor: pointer;
            margin-left: 15px;
            border: none;
            
            &.reset-btn {
              background-color: #f5f5f5;
              color: #666;
              border: 1px solid #ddd;
              
              &:hover {
                background-color: #e6e6e6;
              }
            }
            
            &.submit-btn {
              background-color: #319A19;
              color: white;
              
              &:hover {
                background-color: #267a14;
              }
            }
          }
        }
      }
    }
  }
}

/* 模型选择区域样式 */
.model-selector {
  display: flex;
  padding: 10px;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;

  .model-option {
    padding: 8px 15px;
    margin-right: 10px;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: all 0.3s;

    &.active {
      background-color: #319A19;
      color: white;
      border-color: #319A19;
    }
  }
}

/* 清空对话按钮 */
.clear-txt {
  font-size: 14px;
  color: #666;
  margin-left: auto;
  padding: 0px 15px;
  margin-right: 10px;
  border-radius: 5px;
  cursor: pointer;
  border: 1px solid #ddd;
  line-height: 40px;
  transition: all 0.3s;

  &:hover {
    background-color: #e43a3a;
    color: white;
    border-color: #e43a3a;
  }
}

/* 消息样式 */
.message {
  margin-bottom: 25px;
  display: flex;

  &.message-user {
    justify-content: flex-end;

    .message-content {
      background-color: #1890ff;
      color: white;
      border-bottom-right-radius: 5px;
    }
  }

  &.message-ai {
    justify-content: flex-start;
    flex-direction: column;

    .message-content {
      background-color: #f9f9f9;
      box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
      color: #333;
      border-bottom-left-radius: 5px;
    }
  }

  .message-content {
    max-width: 86%;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;

    // markdown格式
    :deep(pre) {
      background-color: #f6f8fa;
      padding: 16px;
      border-radius: 6px;
      overflow-x: auto;
      margin: 10px 0;
      border: 1px solid #e1e4e8;
    }

    :deep(code) {
      font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
      font-size: 13px;
      tab-size: 4;
    }

    :deep(:not(pre) > code) {
      background-color: rgba(175, 184, 193, 0.2);
      padding: 0.2em 0.4em;
      border-radius: 3px;
      font-size: 85%;
    }

    :deep(p) {
      margin-bottom: 2px;
    }

    :deep(ul), :deep(ol) {
      margin-left: 20px;
      margin-bottom: 10px;
    }

    :deep(img) {
      max-width: 100%;
      border-radius: 5px;
      margin: 5px 0;
    }

    :deep(table) {
      border-collapse: collapse;
      width: 100%;
      margin: 10px 0;
      display: block;
      overflow-x: auto;
      white-space: nowrap;

      th, td {
        border: 1px solid #ddd;
        padding: 8px;
        text-align: left;
      }

      th {
        background-color: #f2f2f2;
      }
    }

    :deep(blockquote) {
      border-left: 4px solid #ddd;
      padding-left: 10px;
      color: #666;
      margin: 10px 0;
    }
  }
}

/* 思考内容样式 */
.thinking-content {
  background-color: #f8f9fa;
  border-left: 3px solid #6c757d;
  padding: 10px 15px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #555;
  border-radius: 5px;
  max-width: 70%;

  .thinking-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
  }
}
/* 加载动画样式 */
.loading-animation {
  display: flex;
  // align-items: center;
  // justify-content: center;
  padding: 10px;
  
  .dot {
    width: 8px;
    height: 8px;
    background-color: #319A19;
    border-radius: 50%;
    margin: 0 4px;
    animation: bounce 1.4s infinite ease-in-out both;
    
    &:nth-child(1) {
      animation-delay: -0.32s;
    }
    
    &:nth-child(2) {
      animation-delay: -0.16s;
    }
  }
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}